home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / Video.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  21.4 KB  |  519 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Video.p
  3.  
  4.      Contains:    Video Driver Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Video;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __VIDEO__}
  30. {$SETC __VIDEO__ := 1}
  31.  
  32. {$I+}
  33. {$SETC VideoIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __QUICKDRAW__}
  38. {$I Quickdraw.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    MixedMode.p                                                    }
  43. {    QuickdrawText.p                                                }
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49. CONST
  50.     mBaseOffset                    = 1;                            {Id of mBaseOffset.}
  51.     mRowBytes                    = 2;                            {Video sResource parameter Id's }
  52.     mBounds                        = 3;                            {Video sResource parameter Id's }
  53.     mVersion                    = 4;                            {Video sResource parameter Id's }
  54.     mHRes                        = 5;                            {Video sResource parameter Id's }
  55.     mVRes                        = 6;                            {Video sResource parameter Id's }
  56.     mPixelType                    = 7;                            {Video sResource parameter Id's }
  57.     mPixelSize                    = 8;                            {Video sResource parameter Id's }
  58.     mCmpCount                    = 9;                            {Video sResource parameter Id's }
  59.     mCmpSize                    = 10;                            {Video sResource parameter Id's }
  60.     mPlaneBytes                    = 11;                            {Video sResource parameter Id's }
  61.     mVertRefRate                = 14;                            {Video sResource parameter Id's }
  62.     mVidParams                    = 1;                            {Video parameter block id.}
  63.     mTable                        = 2;                            {Offset to the table.}
  64.     mPageCnt                    = 3;                            {Number of pages}
  65.     mDevType                    = 4;                            {Device Type}
  66.     oneBitMode                    = 128;                            {Id of OneBitMode Parameter list.}
  67.     twoBitMode                    = 129;                            {Id of TwoBitMode Parameter list.}
  68.     fourBitMode                    = 130;                            {Id of FourBitMode Parameter list.}
  69.     eightBitMode                = 131;                            {Id of EightBitMode Parameter list.}
  70.  
  71.     sixteenBitMode                = 132;                            {Id of SixteenBitMode Parameter list.}
  72.     thirtyTwoBitMode            = 133;                            {Id of ThirtyTwoBitMode Parameter list.}
  73.     firstVidMode                = 128;                            {The new, better way to do the above. }
  74.     secondVidMode                = 129;                            { QuickDraw only supports six video }
  75.     thirdVidMode                = 130;                            { at this time.      }
  76.     fourthVidMode                = 131;
  77.     fifthVidMode                = 132;
  78.     sixthVidMode                = 133;
  79.     spGammaDir                    = 64;
  80.     spVidNamesDir                = 65;
  81.  
  82. { csTimingFormat values in VDTimingInfo }
  83. { look in the declaration rom for timing info }
  84.     kDeclROMtables                = 'decl';
  85.  
  86. { Timing mode constants for Display Manager MultiMode support
  87.     Corresponding    .h equates are in Video.h
  88.                     .a equates are in Video.a
  89.                     .r equates are in DepVideoEqu.r
  90.     
  91.     The first enum is the old names (for compatibility).
  92.     The second enum is the new names.
  93. }
  94.     timingApple12                = 130;                            {  512x384 (60 Hz) Rubik timing.}
  95.     timingApple12x                = 135;                            {  560x384 (60 Hz) Rubik-560 timing.}
  96.     timingApple13                = 140;                            {  640x480 (67 Hz) HR timing.}
  97.     timingApple13x                = 145;                            {  640x400 (67 Hz) HR-400 timing.}
  98.     timingAppleVGA                = 150;                            {  640x480  (60 Hz) VGA timing.}
  99.     timingApple15                = 160;                            {  640x870 (75 Hz) FPD timing.}
  100.     timingApple15x                = 165;                            {  640x818 (75 Hz) FPD-818 timing.}
  101.     timingApple16                = 170;                            {  832x624 (75 Hz) GoldFish timing.}
  102.     timingAppleSVGA                = 180;                            {  800x600  (56 Hz) SVGA timing.}
  103.     timingApple1Ka                = 190;                            { 1024x768 (60 Hz) VESA 1K-60Hz timing.}
  104.     timingApple1Kb                = 200;                            { 1024x768 (70 Hz) VESA 1K-70Hz timing.}
  105.     timingApple19                = 210;                            { 1024x768  (75 Hz) Apple 19" RGB.}
  106.     timingApple21                = 220;                            { 1152x870  (75 Hz) Apple 21" RGB.}
  107.  
  108.     timingInvalid                = 0;                            { Unknown timing… force user to confirm.}
  109.     timingApple_512x384_60hz    = 130;                            {  512x384  (60 Hz) Rubik timing.}
  110.     timingApple_560x384_60hz    = 135;                            {  560x384  (60 Hz) Rubik-560 timing.}
  111.     timingApple_640x480_67hz    = 140;                            {  640x480  (67 Hz) HR timing.}
  112.     timingApple_640x400_67hz    = 145;                            {  640x400  (67 Hz) HR-400 timing.}
  113.     timingVESA_640x480_60hz        = 150;                            {  640x480  (60 Hz) VGA timing.}
  114.     timingApple_640x870_75hz    = 160;                            {  640x870  (75 Hz) FPD timing.}
  115.     timingApple_640x818_75hz    = 165;                            {  640x818  (75 Hz) FPD-818 timing.}
  116.     timingApple_832x624_75hz    = 170;                            {  832x624  (75 Hz) GoldFish timing.}
  117.     timingVESA_800x600_56hz        = 180;                            {  800x600  (56 Hz) SVGA timing.}
  118.     timingVESA_800x600_60hz        = 182;                            {  800x600  (60 Hz) SVGA timing.}
  119.     timingVESA_800x600_72hz        = 184;                            {  800x600  (72 Hz) SVGA timing.}
  120.     timingVESA_800x600_75hz        = 186;                            {  800x600  (75 Hz) SVGA timing.}
  121.     timingVESA_1024x768_60hz    = 190;                            { 1024x768  (60 Hz) VESA 1K-60Hz timing.}
  122.     timingVESA_1024x768_70hz    = 200;                            { 1024x768  (70 Hz) VESA 1K-70Hz timing.}
  123.     timingVESA_1024x768_75hz    = 204;                            { 1024x768  (75 Hz) VESA 1K-70Hz timing (very similar to timingApple_1024x768_75hz).}
  124.     timingApple_1024x768_75hz    = 210;                            { 1024x768  (75 Hz) Apple 19" RGB.}
  125.     timingApple_1152x870_75hz    = 220;                            { 1152x870  (75 Hz) Apple 21" RGB.}
  126.     timingAppleNTSC_ST            = 230;                            {  512x384  (60 Hz, interlaced, non-convolved).}
  127.     timingAppleNTSC_FF            = 232;                            {  640x480  (60 Hz, interlaced, non-convolved).}
  128.     timingAppleNTSC_STconv        = 234;                            {  512x384  (60 Hz, interlaced, convolved).}
  129.     timingAppleNTSC_FFconv        = 236;                            {  640x480  (60 Hz, interlaced, convolved).}
  130.     timingApplePAL_ST            = 238;                            {  640x480  (50 Hz, interlaced, non-convolved).}
  131.     timingApplePAL_FF            = 240;                            {  768x576  (50 Hz, interlaced, non-convolved).}
  132.     timingApplePAL_STconv        = 242;                            {  640x480  (50 Hz, interlaced, convolved).}
  133.     timingApplePAL_FFconv        = 244;                            {  768x576  (50 Hz, interlaced, convolved).}
  134.     timingVESA_1280x960_75hz    = 250;                            { 1280x960  (75 Hz)}
  135.     timingVESA_1280x1024_60hz    = 260;                            { 1280x1024 (60 Hz)}
  136.     timingVESA_1280x1024_75hz    = 262;                            { 1280x1024 (75 Hz)}
  137.     timingVESA_1600x1200_60hz    = 280;                            { 1600x1200 (60 Hz) VESA proposed timing.}
  138.     timingVESA_1600x1200_65hz    = 282;                            { 1600x1200 (65 Hz) VESA proposed timing.}
  139.     timingVESA_1600x1200_70hz    = 284;                            { 1600x1200 (70 Hz) VESA proposed timing.}
  140.     timingVESA_1600x1200_75hz    = 286;                            { 1600x1200 (75 Hz) VESA proposed timing.}
  141.     timingVESA_1600x1200_80hz    = 288;                            { 1600x1200 (80 Hz) VESA proposed timing (pixel clock is 216 Mhz dot clock).}
  142.  
  143. { csConnectFlags values in VDDisplayConnectInfo }
  144.     kAllModesValid                = 0;                            { All modes not trimmed by primary init are good close enough to try }
  145.     kAllModesSafe                = 1;                            { All modes not trimmed by primary init are know to be safe }
  146.     kReportsTagging                = 2;                            { Can detect tagged displays (to identify smart monitors) }
  147.     kHasDirectConnection        = 3;                            { True implies that driver can talk directly to device (e.g. serial data link via sense lines) }
  148.     kIsMonoDev                    = 4;                            { Says whether there’s an RGB (0) or Monochrome (1) connection. }
  149.     kUncertainConnection        = 5;                            { There may not be a display (no sense lines?). }
  150.     kTaggingInfoNonStandard        = 6;                            { Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). }
  151.     kReportsDDCConnection        = 7;                            { Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). }
  152.     kHasDDCConnection            = 8;                            { Card has ddc connect now. }
  153.  
  154. { csDisplayType values in VDDisplayConnectInfo }
  155.     kUnknownConnect                = 1;                            { Not sure how we’ll use this, but seems like a good idea. }
  156.     kPanelConnect                = 2;                            { For use with fixed-in-place LCD panels. }
  157.     kPanelTFTConnect            = 2;                            { Alias for kPanelConnect }
  158.     kFixedModeCRTConnect        = 3;                            {  For use with fixed-mode (i.e., very limited range) displays. }
  159.     kMultiModeCRT1Connect        = 4;                            { 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe }
  160.     kMultiModeCRT2Connect        = 5;                            { 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe }
  161.     kMultiModeCRT3Connect        = 6;                            { 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain }
  162.     kMultiModeCRT4Connect        = 7;                            { Expansion to large multi mode (not yet used) }
  163.     kModelessConnect            = 8;                            { Expansion to modeless model (not yet used) }
  164.     kFullPageConnect            = 9;                            { 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) }
  165.     kVGAConnect                    = 10;                            { 640x480 VGA default -- question everything else }
  166.     kNTSCConnect                = 11;                            { NTSC ST (default), FF, STconv, FFconv }
  167.     kPALConnect                    = 12;                            { PAL ST (default), FF, STconv, FFconv }
  168.     kHRConnect                    = 13;                            { Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) }
  169.     kPanelFSTNConnect            = 14;                            { For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels }
  170.     kMonoTwoPageConnect            = 15;                            { 1152x870 Apple color two-page display }
  171.     kColorTwoPageConnect        = 16;                            { 1152x870 Apple B&W two-page display }
  172.     kColor16Connect                = 17;                            { 832x624 Apple B&W two-page display }
  173.     kColor19Connect                = 18;                            { 1024x768 Apple B&W two-page display }
  174.  
  175. { csTimingFlags values in VDTimingInfoRec }
  176.     kModeValid                    = 0;                            { Says that this mode should NOT be trimmed. }
  177.     kModeSafe                    = 1;                            { This mode does not need confirmation }
  178.     kModeDefault                = 2;                            { This is the default mode for this type of connection }
  179.     kModeShowNow                = 3;                            { This mode should always be shown (even though it may require a confirm) }
  180.     kModeNotResize                = 4;                            { This mode should not be used to resize the display (eg. mode selects a different connector on card) }
  181.     kModeRequiresPan            = 5;                            { This mode has more pixels than are actually displayed }
  182.  
  183. { csResolutionFlags bit flags for VDResolutionInfoRec }
  184.     kResolutionHasMultipleDepthSizes = 0;                        { Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) }
  185.  
  186. {    Power Mode constants for VDPowerStateRec.powerState.    }
  187.     kAVPowerOff                    = 0;
  188.     kAVPowerStandby                = 1;
  189.     kAVPowerSuspend                = 2;
  190.     kAVPowerOn                    = 3;
  191.  
  192. {    Power Mode masks and bits for VDPowerStateRec.powerFlags.    }
  193.     kPowerStateNeedsRefresh        = 0;
  194.     kPowerStateNeedsRefreshMask    = 0+(1 * (2**(0)));
  195.  
  196. { Control Codes }
  197.     cscReset                    = 0;
  198.     cscKillIO                    = 1;
  199.     cscSetMode                    = 2;
  200.     cscSetEntries                = 3;
  201.     cscSetGamma                    = 4;
  202.     cscGrayPage                    = 5;
  203.     cscGrayScreen                = 5;
  204.     cscSetGray                    = 6;
  205.     cscSetInterrupt                = 7;
  206.     cscDirectSetEntries            = 8;
  207.     cscSetDefaultMode            = 9;
  208.     cscSwitchMode                = 10;
  209.     cscSetSync                    = 11;
  210.     cscUnusedCall                = 127;                            { This call used to expend the scrn resource.  Its imbedded data contains more control info }
  211.  
  212. { Status Codes }
  213.     cscGetMode                    = 2;
  214.     cscGetEntries                = 3;
  215.     cscGetPageCnt                = 4;
  216.     cscGetPages                    = 4;                            { This is what C&D 2 calls it. }
  217.     cscGetPageBase                = 5;
  218.     cscGetBaseAddr                = 5;                            { This is what C&D 2 calls it. }
  219.     cscGetGray                    = 6;
  220.     cscGetInterrupt                = 7;
  221.     cscGetGamma                    = 8;
  222.     cscGetDefaultMode            = 9;
  223.     cscGetCurMode                = 10;
  224.     cscGetSync                    = 11;
  225.     cscGetConnection            = 12;                            { Return information about the connection to the display }
  226.     cscGetModeTiming            = 13;                            { Return timing info for a mode }
  227.     cscGetModeBaseAddress        = 14;                            { Return base address information about a particular mode }
  228.     cscGetScanProc                = 15;                            { QuickTime scan chasing routine }
  229.  
  230. { Bit definitions for the Get/Set Sync call}
  231.     kDisableHorizontalSyncBit    = 0;
  232.     kDisableVerticalSyncBit        = 1;
  233.     kDisableCompositeSyncBit    = 2;
  234.     kEnableSyncOnBlue            = 3;
  235.     kEnableSyncOnGreen            = 4;
  236.     kEnableSyncOnRed            = 5;
  237.     kNoSeparateSyncControlBit    = 6;
  238.     kHorizontalSyncMask            = $01;
  239.     kVerticalSyncMask            = $02;
  240.     kCompositeSyncMask            = $04;
  241.     kDPMSSyncMask                = $7;
  242.     kSyncOnBlueMask                = $08;
  243.     kSyncOnGreenMask            = $10;
  244.     kSyncOnRedMask                = $20;
  245.     kSyncOnMask                    = $38;
  246.  
  247. {    Power Mode constants for translating DPMS modes to Get/SetSync calls.    }
  248.     kDPMSSyncOn                    = 0;
  249.     kDPMSSyncStandby            = 1;
  250.     kDPMSSyncSuspend            = 2;
  251.     kDPMSSyncOff                = 7;
  252.  
  253.  
  254. TYPE
  255.     VPBlock = RECORD
  256.         vpBaseOffset:            LONGINT;                                {Offset to page zero of video RAM (From minorBaseOS).}
  257.         vpRowBytes:                INTEGER;                                {Width of each row of video memory.}
  258.         vpBounds:                Rect;                                    {BoundsRect for the video display (gives dimensions).}
  259.         vpVersion:                INTEGER;                                {PixelMap version number.}
  260.         vpPackType:                INTEGER;
  261.         vpPackSize:                LONGINT;
  262.         vpHRes:                    LONGINT;                                {Horizontal resolution of the device (pixels per inch).}
  263.         vpVRes:                    LONGINT;                                {Vertical resolution of the device (pixels per inch).}
  264.         vpPixelType:            INTEGER;                                {Defines the pixel type.}
  265.         vpPixelSize:            INTEGER;                                {Number of bits in pixel.}
  266.         vpCmpCount:                INTEGER;                                {Number of components in pixel.}
  267.         vpCmpSize:                INTEGER;                                {Number of bits per component}
  268.         vpPlaneBytes:            LONGINT;                                {Offset from one plane to the next.}
  269.     END;
  270.  
  271.     VPBlockPtr = ^VPBlock;
  272.  
  273.     VDEntryRecord = RECORD
  274.         csTable:                Ptr;                                    {(long) pointer to color table entry=value, r,g,b:INTEGER}
  275.     END;
  276.  
  277.     VDEntRecPtr = ^VDEntryRecord;
  278.  
  279. { Parm block for SetGray control call }
  280.     VDGrayRecord = RECORD
  281.         csMode:                    BOOLEAN;                                {Same as GDDevType value (0=color, 1=mono)}
  282.     END;
  283.  
  284.     VDGrayPtr = ^VDGrayRecord;
  285.  
  286. { Parm block for SetInterrupt call }
  287.     VDFlagRecord = RECORD
  288.         csMode:                    SInt8;
  289.     END;
  290.  
  291.     VDFlagRecPtr = ^VDFlagRecord;
  292.  
  293. { Parm block for SetEntries control call }
  294.     VDSetEntryRecord = RECORD
  295.         csTable:                ^ColorSpec;                                {Pointer to an array of color specs}
  296.         csStart:                INTEGER;                                {Which spec in array to start with, or -1}
  297.         csCount:                INTEGER;                                {Number of color spec entries to set}
  298.     END;
  299.  
  300.     VDSetEntryPtr = ^VDSetEntryRecord;
  301.  
  302. { Parm block for SetGamma control call }
  303.     VDGammaRecord = RECORD
  304.         csGTable:                Ptr;                                    {pointer to gamma table}
  305.     END;
  306.  
  307.     VDGamRecPtr = ^VDGammaRecord;
  308.  
  309.     VDBaseAddressInfoRec = RECORD
  310.         csDevData:                LONGINT;                                { LONGINT - (long) timing mode }
  311.         csDevBase:                LONGINT;                                { LONGINT - (long) base address of the mode }
  312.         csModeReserved:            INTEGER;                                { INTEGER - (short) will some day be the depth }
  313.         csModeBase:                LONGINT;                                { LONGINT - (long) reserved }
  314.     END;
  315.  
  316.     VDBaseAddressInfoPtr = ^VDBaseAddressInfoRec;
  317.  
  318.     VDSwitchInfoRec = RECORD
  319.         csMode:                    INTEGER;                                {(word) mode depth}
  320.         csData:                    LONGINT;                                {(long) functional sResource of mode}
  321.         csPage:                    INTEGER;                                {(word) page to switch in}
  322.         csBaseAddr:                Ptr;                                    {(long) base address of page (return value)}
  323.         csReserved:                LONGINT;                                {(long) Reserved (set to 0) }
  324.     END;
  325.  
  326.     VDSwitchInfoPtr = ^VDSwitchInfoRec;
  327.  
  328.     VDTimingInfoRec = RECORD
  329.         csTimingMode:            LONGINT;                                { LONGINT - (long) timing mode (a la InitGDevice) }
  330.         csTimingReserved:        LONGINT;                                { LONGINT - (long) reserved }
  331.         csTimingFormat:            LONGINT;                                { LONGINT - (long) what format is the timing info }
  332.         csTimingData:            LONGINT;                                { LONGINT - (long) data supplied by driver }
  333.         csTimingFlags:            LONGINT;                                { LONGINT - (long) mode within device }
  334.     END;
  335.  
  336.     VDTimingInfoPtr = ^VDTimingInfoRec;
  337.  
  338.     VDDisplayConnectInfoRec = RECORD
  339.         csDisplayType:            INTEGER;                                { INTEGER - (word) Type of display connected }
  340.         csConnectTaggedType:    SInt8; (* unsigned char *)                { BYTE - type of tagging }
  341.         csConnectTaggedData:    SInt8; (* unsigned char *)                { BYTE - tagging data }
  342.         csConnectFlags:            LONGINT;                                { LONGINT - (long) tell us about the connection }
  343.         csDisplayComponent:        LONGINT;                                { LONGINT - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) }
  344.         csConnectReserved:        LONGINT;                                { LONGINT - (long) reserved }
  345.     END;
  346.  
  347.     VDDisplayConnectInfoPtr = ^VDDisplayConnectInfoRec;
  348.  
  349. { RawSenseCode
  350.     This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  351.     for the possible raw sense code values when 'standard' sense code hardware is implemented.
  352.  
  353.     For 'standard' sense code hardware, the raw sense is obtained as follows:
  354.         • Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  355.         • Read the state of the monitor sense lines 2, 1, and 0.  (2 is the MSB, 0 the LSB)
  356.  
  357.     IMPORTANT Note: 
  358.     When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  359.     are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' 
  360.  
  361. }
  362.     RawSenseCode = CHAR;
  363.  
  364.  
  365. CONST
  366.     kRSCZero                    = 0;
  367.     kRSCOne                        = 1;
  368.     kRSCTwo                        = 2;
  369.     kRSCThree                    = 3;
  370.     kRSCFour                    = 4;
  371.     kRSCFive                    = 5;
  372.     kRSCSix                        = 6;
  373.     kRSCSeven                    = 7;
  374.  
  375. { ExtendedSenseCode
  376.     This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  377.     for the values which are possible when the extended sense algorithm is applied to hardware
  378.     which implements 'standard' sense code hardware.
  379.  
  380.      For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  381.     (Note:  as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  382.         • Drive sense line 'A' low and read the values of 'B' and 'C'.  
  383.         • Drive sense line 'B' low and read the values of 'A' and 'C'.
  384.         • Drive sense line 'C' low and read the values of 'A' and 'B'.
  385.  
  386.     In this way, a six-bit number of the form BC/AC/AB is generated. 
  387.  
  388.     IMPORTANT Note: 
  389.     When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  390.     are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' 
  391.  
  392. }
  393.     
  394. TYPE
  395.     ExtendedSenseCode = CHAR;
  396.  
  397.  
  398. CONST
  399.     kESCZero21Inch                = $00;                            { 21" RGB                                 }
  400.     kESCOnePortraitMono            = $14;                            { Portrait Monochrome                     }
  401.     kESCTwo12Inch                = $21;                            { 12" RGB                                }
  402.     kESCThree21InchRadius        = $31;                            { 21" RGB (Radius)                        }
  403.     kESCThree21InchMonoRadius    = $34;                            { 21" Monochrome (Radius)                 }
  404.     kESCThree21InchMono            = $35;                            { 21" Monochrome                        }
  405.     kESCFourNTSC                = $0A;                            { NTSC                                 }
  406.     kESCFivePortrait            = $1E;                            { Portrait RGB                         }
  407.     kESCSixMSB1                    = $03;                            { MultiScan Band-1 (12" thru 1Six")    }
  408.     kESCSixMSB2                    = $0B;                            { MultiScan Band-2 (13" thru 19")        }
  409.     kESCSixMSB3                    = $23;                            { MultiScan Band-3 (13" thru 21")        }
  410.     kESCSixStandard                = $2B;                            { 13"/14" RGB or 12" Monochrome        }
  411.     kESCSevenPAL                = $00;                            { PAL                                    }
  412.     kESCSevenNTSC                = $14;                            { NTSC                                 }
  413.     kESCSevenVGA                = $17;                            { VGA                                     }
  414.     kESCSeven16Inch                = $2D;                            { 16" RGB (GoldFish)                      }
  415.     kESCSevenPALAlternate        = $30;                            { PAL (Alternate)                         }
  416.     kESCSeven19Inch                = $3A;                            { Third-Party 19”                        }
  417.     kESCSevenNoDisplay            = $3F;                            { No display connected                 }
  418.  
  419. { DepthMode
  420.     This abstract data type is used to to reference RELATIVE pixel depths.
  421.     Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  422.  
  423.     Bits per pixel DOES NOT directly map to 'DepthMode'  For example, on some
  424.     graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  425.     hardware, 'kDepthMode1' may represent 8BPP.
  426.  
  427.     DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  428.     behave as expected.  The values of the constants which comprise the set are such
  429.     that 'kDepthMode4 < kDepthMode6' behaves as expected.
  430. }
  431.     
  432. TYPE
  433.     DepthMode = INTEGER;
  434.  
  435.  
  436. CONST
  437.     kDepthMode1                    = 128;
  438.     kDepthMode2                    = 129;
  439.     kDepthMode3                    = 130;
  440.     kDepthMode4                    = 131;
  441.     kDepthMode5                    = 132;
  442.     kDepthMode6                    = 133;
  443.  
  444.     kFirstDepthMode                = 128;                            { These constants are obsolete, and just included    }
  445.     kSecondDepthMode            = 129;                            { for clients that have converted to the above        }
  446.     kThirdDepthMode                = 130;                            { kDepthModeXXX constants.                            }
  447.     kFourthDepthMode            = 131;
  448.     kFifthDepthMode                = 132;
  449.     kSixthDepthMode                = 133;
  450.  
  451.  
  452. TYPE
  453.     VDPageInfo = RECORD
  454.         csMode:                    INTEGER;                                {(word) mode within device}
  455.         csData:                    LONGINT;                                {(long) data supplied by driver}
  456.         csPage:                    INTEGER;                                {(word) page to switch in}
  457.         csBaseAddr:                Ptr;                                    {(long) base address of page}
  458.     END;
  459.  
  460.     VDPgInfoPtr = ^VDPageInfo;
  461.  
  462.     VDSizeInfo = RECORD
  463.         csHSize:                INTEGER;                                {(word) desired/returned h size}
  464.         csHPos:                    INTEGER;                                {(word) desired/returned h position}
  465.         csVSize:                INTEGER;                                {(word) desired/returned v size}
  466.         csVPos:                    INTEGER;                                {(word) desired/returned v position}
  467.     END;
  468.  
  469.     VDSzInfoPtr = ^VDSizeInfo;
  470.  
  471.     VDSettings = RECORD
  472.         csParamCnt:                INTEGER;                                {(word) number of params}
  473.         csBrightMax:            INTEGER;                                {(word) max brightness}
  474.         csBrightDef:            INTEGER;                                {(word) default brightness}
  475.         csBrightVal:            INTEGER;                                {(word) current brightness}
  476.         csCntrstMax:            INTEGER;                                {(word) max contrast}
  477.         csCntrstDef:            INTEGER;                                {(word) default contrast}
  478.         csCntrstVal:            INTEGER;                                {(word) current contrast}
  479.         csTintMax:                INTEGER;                                {(word) max tint}
  480.         csTintDef:                INTEGER;                                {(word) default tint}
  481.         csTintVal:                INTEGER;                                {(word) current tint}
  482.         csHueMax:                INTEGER;                                {(word) max hue}
  483.         csHueDef:                INTEGER;                                {(word) default hue}
  484.         csHueVal:                INTEGER;                                {(word) current hue}
  485.         csHorizDef:                INTEGER;                                {(word) default horizontal}
  486.         csHorizVal:                INTEGER;                                {(word) current horizontal}
  487.         csHorizMax:                INTEGER;                                {(word) max horizontal}
  488.         csVertDef:                INTEGER;                                {(word) default vertical}
  489.         csVertVal:                INTEGER;                                {(word) current vertical}
  490.         csVertMax:                INTEGER;                                {(word) max vertical}
  491.     END;
  492.  
  493.     VDSettingsPtr = ^VDSettings;
  494.  
  495.     VDDefMode = RECORD
  496.         csID:                    SInt8; (* UInt8 *)
  497.     END;
  498.  
  499.     VDDefModePtr = ^VDDefMode;
  500.  
  501.     VDSyncInfoRec = RECORD
  502.         csMode:                    SInt8; (* UInt8 *)
  503.         csFlags:                SInt8; (* UInt8 *)
  504.     END;
  505.  
  506.     VDSyncInfoPtr = ^VDSyncInfoRec;
  507.  
  508.  
  509. {$ALIGN RESET}
  510. {$POP}
  511.  
  512. {$SETC UsingIncludes := VideoIncludes}
  513.  
  514. {$ENDC} {__VIDEO__}
  515.  
  516. {$IFC NOT UsingIncludes}
  517.  END.
  518. {$ENDC}
  519.